
/*
 * Step2HadoopMapper.java
 *
 * Created on May 9, 2012, 11:28:34 PM
 */

package Step2;


import java.io.IOException;
// import org.apache.commons.logging.Log;
// import org.apache.commons.logging.LogFactory;
import org.apache.hadoop.mapred.MapReduceBase;
import org.apache.hadoop.mapred.Mapper;
import org.apache.hadoop.mapred.OutputCollector;
import org.apache.hadoop.mapred.Reporter;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.LongWritable;

/**
 *
 * @author crazymooner
 */
public class Step2HadoopMapper extends MapReduceBase implements Mapper<LongWritable,Text,IntWritable,Text> {
    // The Karmasphere Studio Workflow Log displays logging from Apache Commons Logging, for example:
    // private static final Log LOG = LogFactory.getLog("Step2.Step2HadoopMapper");

    @Override
    public void map(LongWritable key, Text value, OutputCollector<IntWritable, Text> output, Reporter reporter)
            throws IOException {
    	
    	output.collect(new IntWritable(0), new Text(value));
    }
}
